package com.dz.syndata;

import com.dz.syndata.service.IDevice4DtzzService;
import com.dz.syndata.service.IDeviceInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class CommandLineRunner implements org.springframework.boot.CommandLineRunner {
    @Autowired
    IDeviceInfoService mCarGpsInfoService;
    @Autowired
    IDevice4DtzzService iDevice4DtzzService;

    @Override
    public void run(String... args) throws Exception {
        mCarGpsInfoService.updateDeviceData();
        iDevice4DtzzService.selectSbyjData();
    }

}
